<template lang="">
  <div>
    <el-row> </el-row>
    <el-table
      :data="ModelList"
      stripe
      style="width: 100%"
      @selection-change="handleSelectionChange"
      border
    >
      <el-table-column prop="modelname" label="名称" width="120"> </el-table-column>
      <el-table-column label="操作" width="100" fixed="right">
          <template slot-scope="scope">
            <el-popconfirm
              confirm-button-text="确定"
              cancel-button-text="取消"
              icon="el-icon-info"
              icon-color="red"
              title="确定外包该订单吗？"
              @confirm="set_waibaos(scope.row)"
            >
              <el-button
                slot="reference"
                type="text"
                style="margin-right: 10px"
                v-if="scope.row.draw_time == null && scope.row.is_epiboly == 2"
                >外包</el-button
              >
            </el-popconfirm>
          </template>
      </el-table-column>
    </el-table>
  </div>
</template>
<script>
import { getModelList } from "@/api/product/index";
export default {
    data(){
        return{
            ModelList:[] 
        }
    },
    mounted(){
        this.get_ModelList()
    },
    methods:{
        get_ModelList(){
            let obj={
                is_dropdown:1
            }
            getModelList(obj).then(res=>{
                if(res.code==200){
                    this.ModelList=res.data
                }
            })
        }
    }
};
</script>
<style lang="">

</style>
